import request from '@/utils/request'

// 查询所有部门
export const queryAllApi = () => request.get('/depts')
// 根据id查询部门
export const queryDeptByIdApi = (id) => request.get('/depts/' + id)
// 删除部门
export const delDeptApi = (id) => request.delete("/depts?id=" + id)
// 新增部门
export const addDeptApi = (dept) => request.post('/depts', dept)
// 修改部门
export const updateDeptApi = (dept) => request.put('/depts', dept)